<?php 
/* SVN FILE: $Id$ */
/* Bug Test cases generated on: 2009-11-08 14:29:58 : 1257690598*/
App::import('Model', 'Bug');

class BugTestCase extends CakeTestCase {
	var $Bug = null;
	var $fixtures = array('app.bug');

	function startTest() {
		$this->Bug =& ClassRegistry::init('Bug');
	}

	function testBugInstance() {
		$this->assertTrue(is_a($this->Bug, 'Bug'));
	}

	function testBugFind() {
		$this->Bug->recursive = -1;
		$results = $this->Bug->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Bug' => array(
			'id'  => 1,
			'content'  => 'Lorem ipsum dolor sit amet',
			'reporter'  => 1,
			'report_date'  => '2009-11-08 14:29:58',
			'resolve_date'  => '2009-11-08 14:29:58'
		));
		$this->assertEqual($results, $expected);
	}
}
?>